package com.dtsz.m2.ui.adapter;

import android.content.Context;

import com.dtsz.m2.R;
import com.dtsz.m2.refresh.baseadapter.CommonAdapter;
import com.dtsz.m2.refresh.baseadapter.ViewHolder;
import com.dtsz.m2.ui.model.TaskOrder;

import java.util.List;

public class TaskAdatper extends CommonAdapter<TaskOrder> {
    public TaskAdatper(Context context, int layoutId, List<TaskOrder> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder holder, TaskOrder taskOrder, int position) {
        holder.setText(R.id.tv_title, taskOrder.getBoType());
        holder.setText(R.id.tv_create, taskOrder.getCreateTimeStr());
        holder.setText(R.id.tv_price, taskOrder.getToPrice() + "㎡");
    }
}
